package calao.storage;

public final class EqualCondition
extends FieldCondition 
{

	final Object value;
	
	public <T> EqualCondition(Field<T> field, T value)
	{
		super(field);
		this.value = value;
	}
		
	public boolean matches(Object value)
	{
		return this.value==null? value==null : this.value.equals(value);
	}
	
	public Object getValue()
	{
		return value;
	}
	
}
